# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class CreateMetricTaskSpec(object):

    def __init__(self, aggregate, customUnit, dataField, filterOpen, filterType, interval, metric, name, unit, filterContent=None):
        """
        :param aggregate:  聚合函数,支持 count sum max min avg
        :param customUnit:  自定义单位
        :param dataField:  查询字段,支持 英文字母 数字 下划线 中划线 点（中文日志原文和各产品线的key）
        :param filterContent: (Optional) 过滤语法，可以为空
        :param filterOpen:  是否打开过滤
        :param filterType:  过滤类型，只能是fulltext和 advance
        :param interval:  时间周期，固定60s
        :param metric:  监控项 , 支持大小写英文字母 下划线 数字 点，且不超过255byte（不支持中划线）
        :param name:  监控任务名称,同一个日志主题下唯一，支持中文 大小写英文字母 下划线 中划线 数字，且不超过32字符
        :param unit:  单位
        """

        self.aggregate = aggregate
        self.customUnit = customUnit
        self.dataField = dataField
        self.filterContent = filterContent
        self.filterOpen = filterOpen
        self.filterType = filterType
        self.interval = interval
        self.metric = metric
        self.name = name
        self.unit = unit
